﻿using System;
using System.Collections.Generic;
using FairyGUI;
namespace Wwo
{
    public class NewWorldView : Window
    {
        public NewWorldView()
        {
        }

        protected override void OnInit()
        {
            this.contentPane = UIPackage.CreateObject("WaterWorld", "NewWorld").asCom;
            this.Center();

            GComponent returnBtn = this.contentPane.GetChild("Return").asCom;
            returnBtn.onClick.Add(() =>
            {
                UISets.GetInstance().SwitchShow(UISets.GetInstance().m_GameLoginView);
            });

            GComponent createBtn = this.contentPane.GetChild("CreateWorld").asCom;
            createBtn.onClick.Add(() =>
            {
                UISets.GetInstance().SwitchShow(UISets.GetInstance().m_CreateRole);
            });
        }

        override protected void OnShown()
        {
        }
    }
}